Login     Sign up
[HELP]How To Add More profile questions
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

location:-
Go to "Administrator" -> "Profile Questions", you will see a form where you can customize member fields.

screen shoot:-

[img]http://www.jcow.net/docs/member_fields1.gif[/img]

here,

in the admin panel we are given limited Questions..

my Q is.. if we want to add more.. Qustions.. .

How to do it :|

anyone?

165 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

any one THERE ? 4 HELP PLZ..!!

165 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Ok what do you mean its pretty straight forward..

just type in your question then select what field type you want and your options eg:

Question = Do you drink

Field Type = select box

Options for Select Box = Yes
No

Then Save changes

it will show on your signup page ...

165 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

[quote=switch48]Ok what do you mean its pretty straight forward..

just type in your question then select what field type you want and your options eg:

Question = Do you drink

Field Type = select box

Options for Select Box = Yes
No

Then Save changes

it will show on your signup page ... [/quote]

bro u didn't got me..
u r right at your point
but what i mean is.. they are only limited of Questions.

what if we want to increase the Question?
like if we go to the admin panel --> then profile Q
but there we can only ask 7Questions..

my point is.. to add more Questions.. like..
if i want to add.. around 15,20 Question? then?

165 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Sorry mate my bad :)..Now I got what you mean.

libs/admin.module.php

around line 975

for($i=1;$i<=7;$i++) {

change the 7 to whatever you like... HeHe I think

165 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

[quote=switch48]Sorry mate my bad :)..Now I got what you mean.

libs/admin.module.php

around line 975

for($i=1;$i<=7;$i++) {

change the 7 to whatever you like... HeHe I think [/quote]

der r around 3 lines

for($i=1;$i<=7;$i++) {

and i tried changing them all.. but no results bro :(...

165 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

hmm I see I'll get back

165 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

for this you need changes in the database too

in jcow accounts, for each new Q you need one db-field more.

for ex question 8: new db-field: var8 varchar(255) NOT NULL default ''

and in jcow_gvars for each new Q you need a new row

for ex. question 8 field: gkey ---> value cf_var8
gvalue ---> value disabled

after this you can change the number 7 in your script

165 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Nice one Falcone cheers mate

165 months ago
Michael (@cofelice)
Join date: Dec 11th 2010
Community posts: 52
View Profile
Send Message

Can someone explain this better? I am not 100% sure how to add the extra question to the database. Does anyone know the code to enter so it adds the field into the table for me?

159 months ago
Michael (@cofelice)
Join date: Dec 11th 2010
Community posts: 52
View Profile
Send Message

well i figured the database out but there must be other pages updates then just the libs/admin page. do you all know what other pages need changed for 7 to 8?

my new questions does not show on the user profiles pages?

159 months ago
Andrew Devyat (@vertuozz)
Join date: Jan 23rd 2011
Community posts: 6
View Profile
Send Message

by the way, if you will make the new field required, old users won't log in in your site

159 months ago
1 2 Next